package com.cxc.visit;


import com.cxc.entity.Apple;
import com.cxc.entity.Banana;
import com.cxc.entity.Fruite;
import com.cxc.entity.Orange;

public class Visit {

    //苹果计价
    public int sell(Apple apple){
        System.out.println("apple's price: ￥50");
        return 50;
    }

    //桔子计价
    public int sell(Orange orange){
        System.out.println("orange's price: ￥20");
        return 20;
    }

    //香蕉计价
    public int sell(Banana banana){
        System.out.println("banana's price: ￥30");
        return 30;
    }

    //其它水果计价
    public int sell(Fruite fruit){
        System.out.println("other price: ￥10");
        return 10;
    }

}
